﻿using JuCheap.Core.Infrastructure;
using JuCheap.Core.Model;
using System.Threading.Tasks;

namespace JuCheap.Core.IService.AppService
{
    /// <summary>
    /// 产品保存服务
    /// </summary>
    public interface IProductSaveService
    {
        /// <summary>
        /// 保存产品
        /// </summary>
        /// <param name="req">产品保存模型</param>
        /// <returns></returns>
        Task<string> CreateAsync(ProductCreateRequestDto req);

        /// <summary>
        /// 保存产品
        /// </summary>
        /// <param name="req">产品保存模型</param>
        /// <returns></returns>
        Task<string> UpdateAsync(ProductEditRequestDto req);
    }
}
